package com.online_exam.service;

import com.github.pagehelper.PageInfo;
import com.online_exam.domain.ExamPaper;
import com.online_exam.domain.User;
import com.online_exam.viewmodel.admin.ExamPaper.ExamPaperEditRequestVM;
import com.online_exam.viewmodel.admin.ExamPaper.ExamPaperPageRequestVM;
import com.online_exam.viewmodel.student.dashboard.PaperFilter;
import com.online_exam.viewmodel.student.dashboard.PaperInfo;

import java.util.List;


public interface ExamService {
    int insert(ExamPaper examPaper);
    ExamPaper examPaperFromVM(ExamPaperEditRequestVM examVM, User user);
    PageInfo<ExamPaper> page(ExamPaperPageRequestVM model);
    ExamPaperEditRequestVM examPaperToVM(Integer id);

    Integer update(ExamPaper examPaper);

    List<PaperInfo> indexPaper(PaperFilter paperFilter);
}
